#pragma once
#include <QtGui>
#include "gcxavg.h"
#include "text/qhtmlrenderer.h"
#include "text/htmltext.h"
#include "text/textdialog.h"

class EngineTest : public QWidget
{
	Q_OBJECT
public:
	EngineTest(QApplication *);
	~EngineTest(void);

        void paintEvent(QPaintEvent *);

private:
	QApplication * app;
	QLabel *lSetInt, *lAddModule, *lGetNew;
	QLineEdit *eSetInt, *eAddModule, *eGetNew, *eGetInt, *eGetModule, *eFree;
	QPushButton *bGetInt, *bGetModule, *bFree;

	QHBoxLayout *hBox0, *hBox1, *hBox2;
	QVBoxLayout *vBox0;

	QLabel *image;

	QWidget *window;

        QPixmap *pixmap;

        QHtmlRenderer * renderer;

        HtmlText * text;

        TextDialog * textDialog;

private slots:
	void onGetInt();
	void onGetModule();
	void onFree();
};
